package com.yuan.yblog.crud.entity;

import java.io.Serial;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
* @author hepeiyuan
* @date 2024-06-04
*/
@Data
@TableName("category")
@Schema(description = "内容分类表")
public class Category implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "标题")
    private String name;

    @Schema(description = "内容详细描述")
    private String content;

    @Schema(description = "简介概述")
    private String summary;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "该分类的内容数量")
    private Integer postCount;

    @Schema(description = "排序编码")
    private Integer orderNum;

    @Schema(description = "父级分类的ID")
    private Long parentId;

    @Schema(description = "SEO关键字")
    private String metaKeywords;

    @Schema(description = "SEO描述内容")
    private String metaDescription;

    @Schema(description = "创建日期")
    private Date created;

    @Schema(description = "修改日期")
    private Date modified;

    @Schema(description = "状态，1可用，0不可用")
    private Integer status;

}